/* 更新日志页面样式 */

/* 主容器 */
.update-log-container {
  max-width: 960px;
  width: 960px;
  min-width: 260px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #f5f5f5;
  flex: 1;
}

/* 内容区域 */
.update-log-content {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  line-height: 1.6;
}

/* 章节样式 */
.update-log-content section {
  margin-bottom: 40px;
}

.update-log-content section:last-child {
  margin-bottom: 0;
}

/* 标题样式 - Typora风格 */
.update-log-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
  position: relative;
}

.update-log-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
}

/* 列表样式 - Typora风格 */
.update-log-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-log-content li {
  position: relative;
  padding: 8px 0 8px 24px;
  margin-bottom: 6px;
  color: #34495e;
  font-size: 15px;
  line-height: 1.7;
  transition: all 0.2s ease;
}

.update-log-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 8px;
  color: #667eea;
  font-weight: bold;
  font-size: 16px;
}

.update-log-content li:hover {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding-left: 28px;
  margin-left: -4px;
  margin-right: -4px;
}

/* 功能类型标签样式 */
.update-log-content li[data-type="feat"]::before,
.update-log-content li:has-text("feat:")::before {
  color: #28a745;
}

.update-log-content li[data-type="enhance"]::before,
.update-log-content li:has-text("enhance:")::before {
  color: #17a2b8;
}

.update-log-content li[data-type="fix"]::before,
.update-log-content li:has-text("fix:")::before {
  color: #dc3545;
}

/* 功能标签高亮 */
.update-log-content li {
  word-wrap: break-word;
}

.update-log-content li:contains("feat:") {
  border-left: 3px solid #28a745;
  padding-left: 21px;
}

.update-log-content li:contains("enhance:") {
  border-left: 3px solid #17a2b8;
  padding-left: 21px;
}

.update-log-content li:contains("fix:") {
  border-left: 3px solid #dc3545;
  padding-left: 21px;
}

/* 响应式设计 */
@media (max-width: 1000px) {
  .update-log-container {
    width: calc(100% - 40px);
    max-width: 960px;
    padding: 30px 20px;
  }
  
  .update-log-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .update-log-container {
    width: calc(100% - 20px);
    padding: 20px 10px;
    min-width: 260px;
  }
  
  .update-log-content {
    padding: 20px;
    border-radius: 8px;
  }
  
  .update-log-content h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .update-log-content section {
    margin-bottom: 30px;
  }
  
  .update-log-content li {
    font-size: 14px;
    padding: 6px 0 6px 20px;
  }
  
  .update-log-content li:hover {
    padding-left: 24px;
  }
}

@media (max-width: 480px) {
  .update-log-container {
    width: calc(100% - 10px);
    padding: 15px 5px;
  }
  
  .update-log-content {
    padding: 15px;
  }
  
  .update-log-content h2 {
    font-size: 18px;
  }
  
  .update-log-content li {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* 滚动条样式 */
.update-log-content::-webkit-scrollbar {
  width: 6px;
}

.update-log-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.update-log-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.update-log-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 打印样式 */
@media print {
  .update-log-container {
    max-width: none;
    width: 100%;
    padding: 0;
    background-color: white;
  }
  
  .update-log-content {
    box-shadow: none;
    border-radius: 0;
  }
  
  .update-log-content h2 {
    color: black;
  }
  
  .update-log-content li {
    color: black;
  }
}